<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<LINK REL="stylesheet" HREF="../../templates/css/style.css" TYPE="text/css">
<LINK rel="stylesheet" href="../../templates/css/dialog.css" type="text/css">
<script language="javascript" src="../../templates/js/tab.js"></script>
<script language="javascript" type="text/javascript" src="../../lib/cate.js"></script>
<script language="javascript" type="text/javascript">
<!--
var oTabs = new Object() ;
function check_form()
{
var k = objSorts.childNodes.length;
cur_num = k - 1;
cur_list = document.getElementById("sel_" + cur_num);
cur_value = cur_list.value;
if (cate[cur_value] || cur_value == "")
{
  alert("請選擇分類!");
  return false;
}

if(document.add_news.address.value =="")
{
   alert("請輸入房屋位置!");
   return false;
}

if(document.add_news.area.value =="")
{
   alert("請輸入坪數!");
   return false;
}

if(document.add_news.title.value =="")
{
   alert("請輸入房屋名稱!");
   return false;
}

if(document.add_news.linkman.value=="")
{
   alert("請輸入聯絡人!");
   return false;
}

if(document.add_news.tel.value == "")
{
   alert("請輸入電話!");
   return false;
}

if(document.add_news.price.value == "")
{
   alert("請輸入租金!");
   return false;
}

if(document.add_news.deposit.value == "")
{
   alert("請輸入押金!");
   return false;
}

if(document.add_news.layout.value == "")
{
   alert("請輸入格局!");
   return false;
}

if(document.add_news.floor.value == "")
{
   alert("請輸入總樓層/出租樓!");
   return false;
}

if(document.add_news.age.value == "")
{
   alert("請輸屋齡!");
   return false;
}

if(document.add_news.floor.value == "")
{
   alert("請輸入總樓層/出租樓!");
   return false;
}

if(document.add_news.img.value == "")
{
   alert("請上傳首頁圖片!");
   return false;
}

obj_form = document.add_news;
obj_form.cate_id.value = cur_value;
obj.submit;
} //End fun
//-->
//多圖片上传代码
function add_inp(){ 
	newInp = document.createElement("input") 
	newInp.setAttribute("type","file") 
	newInp.setAttribute("name","upfile[]") 
	div1.appendChild(newInp) 
	newInp = document.createElement("br") 
	div1.appendChild(newInp) 
} 
function del_inp(){ 
	childlen=div1.childNodes.length 
	childlen-- 
	div1.removeChild(div1.childNodes[childlen]) 
	childlen-- 
	div1.removeChild(div1.childNodes[childlen]) 
} 
</script>
<form method="post" name="add_news"  action="./modules/update_reback.php" onsubmit="return check_form()" enctype="multipart/form-data" >
<table width="98%" border="0" class="table2">
  <tr>
    <td>管理中心 - 出租管理 - 預約回復</td>
  </tr>
</table>
<table cellpadding=0 cellspacing=3 width=98% align="center" style="border:1px solid #A5ADC4">  

<input type=hidden name=add value=1 />
  	  
<tr id="chinese">
<th>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
  <td width="13%" align="right" valign="top" ><strong>回復內容:</strong></td>
  <td width="88%">
  <textarea rows="8" cols="40" name="reback">{reback}</textarea></td>
</tr>
<tr>
    <td colspan="2"><div align="left" style="padding-left:150px;">
  <input type="hidden" name="id" value="{id}" />
  <input name="btn_sub" type="submit" id="btn_sub" value="確 定" class="bot" />
  <input name="reset" type="reset" id="reset" value="重 置" class="bot" />
    </div></td>
</tr>
  </table>
  </th>
</tr>
</table>
</form>

